﻿using System.ComponentModel.DataAnnotations;

namespace AnQinFrameWorkAPI.Entity.SystemCore.DTO.CodeRule;

/// <summary>
///     编码规则新增模型
/// </summary>
public class CodeRuleAddDTO
{
    /// <summary>
    ///     编码规则名称
    /// </summary>
    [Required(ErrorMessage = "编码规则名称不可为空")]
    public string Name { get; set; }

    /// <summary>
    ///     序号
    /// </summary>
    public int? Order { get; set; }

    /// <summary>
    ///     分隔符
    /// </summary>
    public string? Symbol { get; set; }

    /// <summary>
    ///     编码规则子单
    /// </summary>
    [Required(ErrorMessage = "编码规则子单不可为空")]
    public List<CodeRuleItemAddDTO> Items { get; set; }
}